package pe.edu.sisclas.controller;

import java.io.Serializable;

import javax.faces.application.FacesMessage;
import javax.faces.context.FacesContext;

public class MenuController implements Serializable{

	private static final long serialVersionUID = 1L;
	//private MenuModel model;
	public MenuController() {
	}
	
	 public void save() {
	        addMessage("Success", "Data saved");
	    }
	     
	    public void update() {
	        addMessage("Success", "Data updated");
	    }
	     
	    public void delete() {
	        addMessage("Success", "Data deleted");
	    }
	     
	    public void addMessage(String summary, String detail) {
	        FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_INFO, summary, detail);
	        FacesContext.getCurrentInstance().addMessage(null, message);
	    }

	
}
